<template>
  <div>
    <h1>Two {{ props.count }}</h1>
    <button @click="emits('show')">按钮</button>
  </div>
</template>

<script lang="ts">
import { defineComponent } from "vue";

export default defineComponent({
  name: "Two",
});
</script>

<script setup lang="ts">
const props = defineProps<{
  count: number;
}>();
const emits = defineEmits<{
  (event: "show"): void;
}>();
</script>

<style  scoped >
</style>